/**============================================================================
 Confidential Information - Limited distribution to authorized persons only.
 This software is protected as an unpublished work under the U.S. Copyright
 Act of 1976.

 Copyright (c) 2011, BluePhoenix Solutions, Inc. All rights reserved.
 ----------------------------------------------------------------------------
 file......: Main.java
 Author....: Vyacheslav Kovalyov
 Created...: 22.10.11

 Description:

 ============================================================================*/
package ru.monyag.pred.swing;

import ru.monyag.pred.swing.ui.desktop.MainDesktop;

import javax.swing.*;

import static java.lang.Boolean.TRUE;
import static org.jvnet.substance.SubstanceLookAndFeel.SHOW_EXTRA_WIDGETS;

/**
 * @author Vyacheslav Kovalyov
 * @version 1.0
 */
public class Main {

    public static void main(String[] args) {

        try {

            UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
            UIManager.put(SHOW_EXTRA_WIDGETS, TRUE);
        } catch (Exception e) {

            e.printStackTrace();
            return;
        }

        JFrame.setDefaultLookAndFeelDecorated(true);
        JDialog.setDefaultLookAndFeelDecorated(true);

        MainDesktop desktop = new MainDesktop();
        desktop.setDefaultCloseOperation(MainDesktop.EXIT_ON_CLOSE);
        desktop.setVisible(true);
    }
}
